package itsm.isperp.module.entity.app;

import itsm.isperp.framework.domain.IBean;
import itsm.isperp.framework.web.converter.CustomDateJsonSerializer;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.DateTimeFormat.ISO;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

/**
 * 节假日或者工作日实体
 * 
 * @author lizx
 * @date 2013-5-12
 */
@Entity
@Table(name = "app_calendar_workdate")
public class AppCalendarWorkdate implements IBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	protected String id;

	@JsonSerialize(using = CustomDateJsonSerializer.class)
	@DateTimeFormat(iso = ISO.DATE)
	@Column
	protected Date calendarDate;

	@Column
	protected boolean dateType;

	@Column
	protected String appCalendarConfigId;

	public String getId() {
		return id;
	}

	public Date getCalendarDate() {
		return calendarDate;
	}

	public boolean isDateType() {
		return dateType;
	}

	public String getAppCalendarConfigId() {
		return appCalendarConfigId;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setCalendarDate(Date calendarDate) {
		this.calendarDate = calendarDate;
	}

	public void setDateType(boolean dateType) {
		this.dateType = dateType;
	}

	public void setAppCalendarConfigId(String appCalendarConfigId) {
		this.appCalendarConfigId = appCalendarConfigId;
	}
 
	
}
